package com.jeesite.modules.home.entity;

import javax.validation.constraints.Size;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 任务部署分发表-牵头领导批示Entity
 * @author xhc
 * @version 2022-03-28
 */
@Table(name="dc_sup_task_action_explain", alias="a", label="任务部署分发表-牵头领导批示信息", columns={
		@Column(name="id", attrName="id", label="主键", isPK=true),
		@Column(name="action_id", attrName="actionId", label="分发任务id"),
		@Column(name="explain_content", attrName="explainContent", label="领导批示"),
		@Column(name="explain_code", attrName="explainCode", label="领导编码"),
		@Column(name="explain_name", attrName="explainName", label="领导姓名", queryType=QueryType.LIKE),
		@Column(name="explain_time", attrName="explainTime", label="领导批示时间", isUpdateForce=true),
	}, orderBy="a.id DESC"
)
public class DcSupTaskActionExplain extends DataEntity<DcSupTaskActionExplain> {
	
	private static final long serialVersionUID = 1L;
	 /**
	 * 分发任务id
	 */
	private String actionId;
	 /**
	 * 领导批示
	 */
	private String explainContent;
	 /**
	 * 领导编码
	 */
	private String explainCode;
	 /**
	 * 领导姓名
	 */
	private String explainName;
	 /**
	 * 领导批示时间
	 */
	private Date explainTime;
	
	public DcSupTaskActionExplain() {
		this(null);
	}

	public DcSupTaskActionExplain(String id){
		super(id);
	}
	
	@Size(min=0, max=64, message="分发任务id长度不能超过 64 个字符")
	public String getActionId() {
		return actionId;
	}

	public void setActionId(String actionId) {
		this.actionId = actionId;
	}
	
	public String getExplainContent() {
		return explainContent;
	}

	public void setExplainContent(String explainContent) {
		this.explainContent = explainContent;
	}
	
	@Size(min=0, max=64, message="领导编码长度不能超过 64 个字符")
	public String getExplainCode() {
		return explainCode;
	}

	public void setExplainCode(String explainCode) {
		this.explainCode = explainCode;
	}
	
	@Size(min=0, max=64, message="领导姓名长度不能超过 64 个字符")
	public String getExplainName() {
		return explainName;
	}

	public void setExplainName(String explainName) {
		this.explainName = explainName;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getExplainTime() {
		return explainTime;
	}

	public void setExplainTime(Date explainTime) {
		this.explainTime = explainTime;
	}
	
}